const state={
    userMsg: JSON.parse(localStorage.getItem('user')) || {},
    userToken:localStorage.getItem('userToken') || ''
}
const getters={
    // setLocation(state){
    //   if (localStorage.getItem('user')){
    //      return  state.userMsg=JSON.parse(localStorage.getItem('user'))
    //   }
    // },
    // getToken(state){
    //    return  state.userToken=localStorage.getItem('userToken')
    // }

}
const mutations={
   setUser(state,data){
      state.userMsg=data
   }
}
const  actions={

}
export  default {
    namespaced:true,
    state,
    getters,
    mutations,
    actions
}
